package edu.spsu.courses;

import java.util.ArrayList;

public class CallbackWrapper implements Runnable {
	private ResponseListener callbackActivity;
//	private HttpResponse response;
	
//	private String response;
	private ArrayList<Course> response;
	
	public CallbackWrapper(ResponseListener callbackActivity) {
		this.callbackActivity = callbackActivity;
	}
	
	public void run() {
		callbackActivity.onResponseReceived(response);
	}

	public void setResponse(ArrayList<Course> response) {
		this.response = response;
	}

	
//	public void setResponse(HttpResponse response) {
//		this.response = response;
//	}
}
